Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo of code to perform retries, internal to the Api object. #15

Merged
merged 1 commit into from
Aug 9, 2017

Conversation

gstein
Copy link
Contributor

@gstein gstein commented Aug 9, 2017

Here is my thinking on how to do retries within the Api object, related to issue #8

Some additional comments and debug code could/should be added (if you like this approach). And the Api class has new parameters to document in README.md

@@ -15,6 +16,10 @@
}
NAMESPACE = "http://api.namecheap.com/xml.response"

# default values for the retry mechanism
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to rework those "retries" as "attempts" to replace following while True conditional with while attempts > 0, which looks more readable for me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing! ... shall I provide additional commits to this PR, or do you have another preference?

(if you haven't guessed, I'm totally easy :-) ... and deferential to your design/goals for PyNamecheap)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. Merged already ... 📦

@agrrh agrrh merged commit c80837d into Bemmu:master Aug 9, 2017
@gstein gstein deleted the retry branch August 9, 2017 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants